<?php
  require_once("../includes.php"); 
  $membership = New Membership();
  $membership->confirm_admin();

  $action = $_GET['a'];
  $bericht = ($action == "edit") ? "Aanpassen" : (($action == "add") ? "Toevoegen" : "Verwijderen");
  include('../header.php');
?>

<div id='agenda'>
<div class="block">
  <h2 class="red">Lesgroep <?php echo $bericht; ?></h2>
  <div id="info">
    <?php echo Website::create_link("admin/","Administratie", "right"); ?>
    
    <form action="<?php echo $action; ?>.php" method="post">
      <h3>Selecteer de dag en tijd van de te verlengen les</h3>

      <?php 
        echo Website::selection("Dag van de week", "dag", Agenda::days());
        echo Website::selection("Tijd", "tijd", Agenda::time_table());
      ?>
      
      <input type='submit' id='submitButton' value='Aanpassen'>
    </form>
  </div>
</div>
</div>
<?php include('../footer.php'); ?>